<?php
    App::uses('AppModel', 'Model');
    class Blogs extends AppModel{
        public $id=null;
        public $title=null;
        public $images=null;
        public $content =null;
        public $created_date = null;
        public $modified_date =null;
        
        
        public $validate = array(
                'title' => array(
                        'required' => true,
                		'allowEmpty' => false,
                		'message' => 'Password must be at least 8 characters long'
                ),
        );
        
        public function beforeSave($options = array()) {
            /* if (isset($this->data[$this->alias]['password'])) {
                $this->data[$this->alias]['password'] = AuthComponent::password($this->data[$this->alias]['password']);
            } */
        }
    }
?>